package com.cdh.cms.feign.fallback;

import com.cdh.cms.feign.OssFileService;
import com.cdh.utils.result.Restful;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author by cdh
 * @description:
 * @Date: Created in 16:33 on 2021/3/1
 */
@Service
@Slf4j
public class OssFileServiceFallBack implements OssFileService {

    @Override
    public Restful removeFileAvatar(String url) {
        log.info("熔断保护");
        return Restful.error().message("调用超时");
    }
}
